projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae0dadf
)
box: Make sure center_req is initialized
author
Timm Bäder
<mail@baedert.org>
Mon, 20 Mar 2017 13:16:56 +0000
(14:16 +0100)
committer
Timm Bäder
<mail@baedert.org>
Mon, 20 Mar 2017 13:16:56 +0000
(14:16 +0100)
In case we have an invisible center widget, we never initialize it, but
later still use it.
gtk/gtkbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbox.c
b/gtk/gtkbox.c
index 7e31c0b9d939ed9bc5b8f1e732218a86b3c01345..71bac69591b2b74a7f4f067fdee693f90cf68aaa 100644
(file)
--- a/
gtk/gtkbox.c
+++ b/
gtk/gtkbox.c
@@
-802,7
+802,7
@@
gtk_box_size_allocate_with_center (GtkWidget *widget,
GtkTextDirection direction;
GtkAllocation child_allocation;
GtkRequestedSize *sizes[2];
- GtkRequestedSize center_req;
+ GtkRequestedSize center_req
= {0, 0}
;
gint child_minimum_baseline, child_natural_baseline;
gint minimum_above, natural_above;
gint minimum_below, natural_below;